package persistence.user;
public class UserPersistFactory {

    public static UserDAO getUserDAO(String persistenceMechanism){
        if (persistenceMechanism.equals("file")){
            return UserDAOFile.getJDBCPersistenceManager();
        }
        else if  (persistenceMechanism.equals("JDBC")){
            return UseDAOJDBC.getJDBCPersistenceManager();
        }
        else if  (persistenceMechanism.equals("pool")){
            return UserDAOPool.getUserDAOPoolImplementation();
        }
        else{
            return null;
        }
    }
}
